package com.qys.livesMall.shop.modal.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author gmx
 * @since 2023-07-03
 */
@Data
@Schema(name = "秒杀商品", description = "")
@Valid
public class SeckillGoodsDto implements Serializable {

    private static final long serialVersionUID = 1L;
    private String id;
    @NotNull
    @Schema(description = "商品 ID")
    private String infoId;
    @NotNull
    @Schema(description = "sku ID")
    private String skuId;
    @NotNull
    @Schema(description = "名字")
    private String name;
    @NotNull
    @Schema(description = "规格名字")
    private String skuName;
    @NotNull
    @Schema(description = "商品图片")
    private String images;
    @NotNull
    @Schema(description = "原价格")
    private BigDecimal price;
    @NotNull
    @Schema(description = "秒杀价格")
    private BigDecimal seckillPrice;
    @NotNull
    @Schema(description = "描述")
    private String content;
    @Schema(description = "活动ID")
    private String activityId;
    @NotNull
    @Schema(description = "排序")
    private Integer sort;
    @NotNull
    @Schema(description = "店铺id")
    private List<String> shopId;
}
